

package jetbrains.buildServer.server.rest.model.changeLog;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import jetbrains.buildServer.controllers.buildType.tabs.GraphCommit;

@XmlType(name = "changeLogGraphSubrepoChange")
public class ChangeLogGraphSubrepoChange {

  private final GraphCommit.SubrepoChange mySubrepoChange;

  public ChangeLogGraphSubrepoChange(GraphCommit.SubrepoChange subrepoChange) {
    mySubrepoChange = subrepoChange;
  }

  @XmlAttribute(name = "column_id")
  public String getColumnId() {
    return mySubrepoChange.getColumnId();
  }

  @XmlAttribute(name = "mod_id")
  public Long getModId() {
    return mySubrepoChange.getModId();
  }
}